{% extends "body.html" %}
{% load i18n %}
{% block content %}
<h2>{% trans "Register" %}</h2>
<form action="." method="post"><input type="hidden" value="{{ token }}" name="token" />{% csrf_token %}
          <table style="width:50%;">
	    <tr><th colspan="2">{% trans "Register" %}</th></tr>
            <tr style="height:35px;">
              <td style="width:35%;text-align:right;font-weight:bold;">{% trans "Login" %}</td>
              <td>{{ form.login }}{% if form.login.errors %}<div class="errmsg">{{ form.login.errors|join:", " }}</div>{% endif %}</td>
            </tr>
            <tr style="height:35px;">
              <td style="width:35%;text-align:right;font-weight:bold;">{% trans "Password" %}</td>
              <td>{{ form.password1 }}{% if form.password1.errors %}<div class="errmsg">{{ form.password1.errors|join:", " }}</div>{% endif %}</td>
            </tr>
            <tr style="height:35px;">
              <td style="width:35%;text-align:right;font-weight:bold;">{% trans "Password Again" %}</td>
              <td>{{ form.password2 }}{% if form.password2.errors %}<div class="errmsg">{{ form.password2.errors|join:", " }}</div>{% endif %}</td>
            </tr>
            <tr style="height:35px;">
              <td style="width:35%;text-align:right;font-weight:bold;">{% trans "Email" %}</td>
              <td>{{ form.email }}{% if form.email.errors %}<div class="errmsg">{{ form.email.errors|join:", " }}</div>{% endif %}</td>
            </tr>
	    <tr>
              <td style="width:35%;text-align:right;font-weight:bold;">&nbsp;</td>
              <td><style>.content tr { height:auto; }</style>
		    {{ form.recaptcha }}{% if form.recaptcha.errors %}<div class="errmsg">{{ form.recaptcha.errors|join:", " }}</div>{% endif %}</td>
            </tr>
	    <tr style="height:35px;">
              <td style="width:35%;"></td>
              <td><input type="submit" value="{% trans "Register My" %}"></td>
            </tr>
          </table>
</form>
{% endblock %}
{% block crumb %}<a href="/">{% trans "Home" %}</a> > <a href="/user/">{% trans "User Panel" %}</a>{% endblock %}
{% block on_user %} id="current"{% endblock %}